/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI.Dialogs;

import General.CurrentData;
import com.sun.awt.AWTUtilities;
import javax.swing.ImageIcon;
import javax.swing.JDialog;
import javax.swing.JRootPane;

/**
 *
 * @author David
 */
public class BasicDialog extends JDialog
{

    /**
     *
     */
    public BasicDialog()
    {
        setUndecorated(true);
        try
        {
            AWTUtilities.setWindowOpacity(this, .95f);
        }catch(UnsupportedOperationException uoe)
        {
            CurrentData.getObserverDialog().printMessage("No transparency supported");
        }
        getRootPane().setWindowDecorationStyle(JRootPane.FILE_CHOOSER_DIALOG);
        setModal(true);
        setIconImage(new ImageIcon("dat//img//other//logo.png").getImage());
    }
}
